How to delete "Outlook Default Profile" via script  Outlook 2010

We just rolled out Office 2010 to our pilot group & we are finding that users are seeing 2 profiles for Outlook, there own profile & a default outlook profile. As long as this default outlook profile exists my users have trouble sending email, things just pile up in the Outbox. If we delete the default outlook profile mail flow just fine.

 

I am looking for a way to delete the default outlook profile via a script since I have over 5000 users once this rolls out to my folks.   Powershell would be my prefered method if possible.

 

TIA.

October 18th, 2010 11:50pm

Hi,

 

Profiles can be named darn near anything by users. They're all in the same place in the registry, though:

HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles

You can write a VBS (or whatever language you prefer) to use WMI to access the registry and remove what you like. But you'll have to wade through the various keys looking for the identity of the old server before you'll feel safe nuking a profile.

Best Regards,

 

Sally Tang

TechNet Subscriber Support in forum

If you have any feedback on our support, please contact tngfb@microsoft.com  

  • Marked as answer by Sally Tang Wednesday, October 27, 2010 8:19 AM
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2010 6:00am

 

Hi,

 

I am writing to see how everything is going with this issue. Is the problem resolved? If there is anything I can do for you, please feel free to let me know.

 

Best Regards,

 

Sally Tang

TechNet Subscriber Support in forum

If you have any feedback on our support, please contact tngfb@microsoft.com   

October 21st, 2010 9:29am

 

Hi,

 

As I have not heard from you for several days. I will go ahead and close this thread. If this issue is not resolved or you have any questions, please feel free to reply to us and this thread will be re-opened.

 

Best Regards,

 

Sally Tang

TechNet Subscriber Support in forum

If you have any feedback on our support, please contact tngfb@microsoft.com   

Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 8:19am

Hey guys I know this is old and answered, but if you slide this PS Script into Group Policy, under logon scripts it will run just once for every user, no matter what device they are on.

Start-Sleep -s 10

$User = [Environment]::UserName
$path = "C:\Outlook\" + "$User"
$ClearOutlook = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
If(-not(Test-Path -Path $path))
  {
   del $ClearOutlook -force -Recurse
   New-Item -Path $path -type directory
   }

May 14th, 2014 11:54pm

HI,

 I have deploy new  Outlook Account via PRF and set to Append. Now i have a issue with adding shared mailboxes and removing the old email account ( Primary Account)

So with this bit harder to remove the primary account. is there way to delete the Primary account through the 

script and rename the profile?


As

Free Windows Admin Tool Kit Click here and download it now
May 1st, 2015 2:04am

Hey guys I know this is old and answered, but if you slide this PS Script into Group Policy, under logon scripts it will run just once for every user, no matter what device they are on.

Start-Sleep -s 10

$User = [Environment]::UserName
$path = "C:\Outlook\" + "$User"
$ClearOutlook = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
If(-not(Test-Path -Path $path))
  {
   del $ClearOutlook -force -Recurse
   New-Item -Path $path -type directory
   
May 3rd, 2015 7:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics